package com.fang.db.dynamicdatasource01.controller;

import com.fang.db.dynamicdatasource01.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author Bernie_fang
 * @Date 2022/12/7 23:17
 **/
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("method01")
    public String method01(){
        orderService.method01();
        return "method01 success";
    }

    @GetMapping("method02")
    public String method02(){
        orderService.method02();
        return "method01 success";
    }

    @GetMapping("method03")
    public String method03(){
        orderService.method03();
        return "method01 success";
    }

    @GetMapping("method031")
    public String method06(){
        orderService.method031();
        return "method01 success";
    }

    @GetMapping("method032")
    public String method032(){
        orderService.method032();
        return "method01 success";
    }


    @GetMapping("method04")
    public String method04(){
        orderService.method04();
        return "method01 success";
    }

    @GetMapping("method041")
    public String method041(){
        orderService.method041();
        return "method01 success";
    }

    @GetMapping("method042")
    public String method042(){
        orderService.method042();
        return "method01 success";
    }

    @GetMapping("method05")
    public String method05(){
        orderService.method05();
        return "method01 success";
    }

    @GetMapping("method052")
    public String method052(){
        orderService.method052();
        return "method01 success";
    }



}
